/*
 * Powered By [ERP]
 * Since 2014 - 2016
 */

package com.erp.cloudfi.org.profitcenter.model;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author smn email:shimengnan007@163.com
 * @version 1.0
 * @since 1.0
 */


public class Profitcenter implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "Profitcenter";
	public static final String ALIAS_ID = "主键";
	public static final String ALIAS_NUMBER = "利润中心编码";
	public static final String ALIAS_NAME = "利润中心名称";
	public static final String ALIAS_BASEPERSONID = "负责人";
	public static final String ALIAS_ORGADMINID = "所属部门";
	public static final String ALIAS_STATUS = "状态";
	public static final String ALIAS_CREATERID = "创建人";
	public static final String ALIAS_CREATTIME = "创建时间";
	public static final String ALIAS_LASTMODIFIERID = "最后修改人";
	public static final String ALIAS_LASTMODIFYTIME = "最后修改时间";
	public static final String ALIAS_MAINORGID = "主组织";
	public static final String ALIAS_CORPID = "公司";
	public static final String ALIAS_BUSIDATE = "业务日期";
	public static final String ALIAS_REMARK = "备注";
	public static final String ALIAS_ISSEALUP = "是否封存[是为1,否为0]";
	public static final String ALIAS_ISCONTROLED = "是否受控[是为1,否为0]";
	public static final String ALIAS_VDEF1 = "自定义1";
	public static final String ALIAS_VDEF2 = "自定义2";
	public static final String ALIAS_VDEF3 = "自定义3";
	public static final String ALIAS_VDEF4 = "自定义4";
	public static final String ALIAS_VDEF5 = "自定义5";
	public static final String ALIAS_VDEF6 = "自定义6";
	public static final String ALIAS_VDEF7 = "自定义7";
	public static final String ALIAS_VDEF8 = "自定义8";
	public static final String ALIAS_VDEF9 = "自定义9";
	public static final String ALIAS_VDEF10 = "自定义10";
	public static final String ALIAS_ISDELETED = "删除标志[未删除为0，已删除为1]";
	public static final String ALIAS_TS = "时间戳";
	protected static final String DATE_TIME_FORMAT = "yyyy-MM-dd";
	//date formats
	public static final String FORMAT_CREATTIME = DATE_TIME_FORMAT;
	public static final String FORMAT_LASTMODIFYTIME = DATE_TIME_FORMAT;
	public static final String FORMAT_BUSIDATE = DATE_TIME_FORMAT;
	public static final String FORMAT_TS = DATE_TIME_FORMAT;
	
	//columns START
    /** 主键       db_column: id */
	private String id;
    /** 利润中心编码       db_column: number */
	private String number;
    /** 利润中心名称       db_column: name */
	private String name;
    /** 负责人       db_column: basepersonid */
	private String basepersonid;
    /** 所属部门       db_column: orgadminid */
	private String orgadminid;
    /** 状态       db_column: status */	
	
	private Integer status;
    /** 创建人       db_column: createrid */
	private String createrid;
    /** 创建时间       db_column: creattime */	
	
	private Date creattime;
    /** 最后修改人       db_column: lastmodifierid */
	private String lastmodifierid;
    /** 最后修改时间       db_column: lastmodifytime */	
	
	private Date lastmodifytime;
    /** 主组织       db_column: mainorgid */	

	private String mainorgid;
    /** 公司       db_column: corpid */	

	private String corpid;
    /** 业务日期       db_column: busidate */	
	
	private Date busidate;
    /** 备注       db_column: remark */	

	private String remark;
    /** 是否封存[是为1,否为0]       db_column: issealup */	
	
	private Integer issealup;
    /** 是否受控[是为1,否为0]       db_column: iscontroled */	
	
	private Integer iscontroled;
	/** 门店地址 */
	private String proaddress;
    /** 自定义1       db_column: vdef1 */	

	private String vdef1;
    /** 自定义2       db_column: vdef2 */	

	private String vdef2;
    /** 自定义3       db_column: vdef3 */	

	private String vdef3;
    /** 自定义4       db_column: vdef4 */	

	private String vdef4;
    /** 自定义5       db_column: vdef5 */	

	private String vdef5;
    /** 自定义6       db_column: vdef6 */	

	private String vdef6;
    /** 自定义7       db_column: vdef7 */	

	private String vdef7;
    /** 自定义8       db_column: vdef8 */	

	private String vdef8;
    /** 自定义9       db_column: vdef9 */	

	private String vdef9;
    /** 自定义10       db_column: vdef10 */	

	private String vdef10;
    /** 删除标志[未删除为0，已删除为1]       db_column: isdeleted */	
	
	private String groupid;
	
	private Integer isdeleted;

	//扩展字段
	private List<MappingData> extfield;
    /** 时间戳       db_column: ts */	

	private Date ts;

	private Integer storeproperty;
	/** 增值税税率        db_column: vatrate */


	private BigDecimal vatrate;
	/** 银行账户        db_column: accountbankid */

	private String accountbankid;


	private String accountbankname;
	/** 支付宝账号        db_column: alipayid */
	private String alipayid;

	private String alipayname;
	/** 微信账号        db_column: wechat */
	private String wechat;

	private String wechatname;

	//columns END
	/**
	 * 门店中心归属多选通过该List转换
	 */
	private List<String> groupidList;

	/**
	 * 手机号        db_column: phone
	 */
	private String phone;
	/**
	 * 是否是公司默认创建
	 */
	private Integer createbycorp;

	/**
	 * 生效日期
	 */
	private Date effectivestartdate;
	/*
	 *失败日期
	 */
	private Date effectiveenddate;
	/**
	 * 生效状态 1:临时有效|2有效|3过期
	 */
	private Integer effectiveStatus;
	/**
   * 	补充协议号.
   * 	db_column: addcontract
   */
  private String addcontract;
  /**
   * 	所属品牌.
   * 	db_column: brand
   */
  private String brand;
  /**
   * 	首次开通时间.
   * 	db_column: firstdate
   */

  private Date firstdate;
  /**
   * 	最后关闭时间.
   * 	db_column: lastdate
   */

  private Date lastdate;
  /**
   * 	是否年费.
   * 	db_column: issaas
   */
  private Integer issaas=1;
  /**
   * 	是否直销.
   * 	db_column: isderect
   */
  private Integer isderect=1;

	private String customerid;

	private String customername;
	private String supplierid;
	private String suppliername;

	public Profitcenter(){
	}

	public Profitcenter(
		String id
	){
		this.id = id;
	}

//	//扩展数据
	public List<MappingData> getExtfield() {
		return extfield;
	}

	public void setExtfield(List<MappingData>  extfield) {
		this.extfield = extfield;
	}

	public void setStoreproperty(Integer value) {
		storeproperty = value;
	}

	public Integer getStoreproperty() {
		return storeproperty;
	}
	public void setVatrate(BigDecimal value) {
		vatrate = value;
	}

	public BigDecimal getVatrate() {
		return vatrate;
	}
	public void setAccountbankid(String value) {
		accountbankid = value;
	}

	public String getAccountbankid() {
		return accountbankid;
	}
	public void setAlipayid(String value) {
		alipayid = value;
	}

	public String getAlipayid() {
		return alipayid;
	}
	public void setWechat(String value) {
		wechat = value;
	}

	public String getWechat() {
		return wechat;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}


  public String getAddcontract() {
    return addcontract;
  }

  public void setAddcontract(String addcontract) {
    this.addcontract = addcontract;
  }

  public String getBrand() {
    return brand;
  }

  public void setBrand(String brand) {
    this.brand = brand;
  }

  public Date getFirstdate() {
    return firstdate;
  }

  public void setFirstdate(Date firstdate) {
    this.firstdate = firstdate;
  }

  public Date getLastdate() {
    return lastdate;
  }

  public void setLastdate(Date lastdate) {
    this.lastdate = lastdate;
  }

  public Integer getIssaas() {
    return issaas;
  }

  public void setIssaas(Integer issaas) {
    this.issaas = issaas;
  }

  public Integer getIsderect() {
    return isderect;
  }

  public void setIsderect(Integer isderect) {
    this.isderect = isderect;
  }

  //授权发生改变
  private boolean authChange=false;

  public boolean isAuthChange() {
    return authChange;
  }

  public void setAuthChange(boolean authChange) {
    this.authChange = authChange;
  }

	public String getCustomerid() {
		return customerid;
	}

	public void setCustomerid(String customerid) {
		this.customerid = customerid;
	}

	public String getSupplierid() {
		return supplierid;
	}

	public void setSupplierid(String supplierid) {
		this.supplierid = supplierid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBasepersonid() {
		return basepersonid;
	}

	public void setBasepersonid(String basepersonid) {
		this.basepersonid = basepersonid;
	}

	public String getOrgadminid() {
		return orgadminid;
	}

	public void setOrgadminid(String orgadminid) {
		this.orgadminid = orgadminid;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCreaterid() {
		return createrid;
	}

	public void setCreaterid(String createrid) {
		this.createrid = createrid;
	}

	public Date getCreattime() {
		return creattime;
	}

	public void setCreattime(Date creattime) {
		this.creattime = creattime;
	}

	public String getLastmodifierid() {
		return lastmodifierid;
	}

	public void setLastmodifierid(String lastmodifierid) {
		this.lastmodifierid = lastmodifierid;
	}

	public Date getLastmodifytime() {
		return lastmodifytime;
	}

	public void setLastmodifytime(Date lastmodifytime) {
		this.lastmodifytime = lastmodifytime;
	}

	public String getMainorgid() {
		return mainorgid;
	}

	public void setMainorgid(String mainorgid) {
		this.mainorgid = mainorgid;
	}

	public String getCorpid() {
		return corpid;
	}

	public void setCorpid(String corpid) {
		this.corpid = corpid;
	}

	public Date getBusidate() {
		return busidate;
	}

	public void setBusidate(Date busidate) {
		this.busidate = busidate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getIssealup() {
		return issealup;
	}

	public void setIssealup(Integer issealup) {
		this.issealup = issealup;
	}

	public Integer getIscontroled() {
		return iscontroled;
	}

	public void setIscontroled(Integer iscontroled) {
		this.iscontroled = iscontroled;
	}

	public String getProaddress() {
		return proaddress;
	}

	public void setProaddress(String proaddress) {
		this.proaddress = proaddress;
	}

	public String getVdef1() {
		return vdef1;
	}

	public void setVdef1(String vdef1) {
		this.vdef1 = vdef1;
	}

	public String getVdef2() {
		return vdef2;
	}

	public void setVdef2(String vdef2) {
		this.vdef2 = vdef2;
	}

	public String getVdef3() {
		return vdef3;
	}

	public void setVdef3(String vdef3) {
		this.vdef3 = vdef3;
	}

	public String getVdef4() {
		return vdef4;
	}

	public void setVdef4(String vdef4) {
		this.vdef4 = vdef4;
	}

	public String getVdef5() {
		return vdef5;
	}

	public void setVdef5(String vdef5) {
		this.vdef5 = vdef5;
	}

	public String getVdef6() {
		return vdef6;
	}

	public void setVdef6(String vdef6) {
		this.vdef6 = vdef6;
	}

	public String getVdef7() {
		return vdef7;
	}

	public void setVdef7(String vdef7) {
		this.vdef7 = vdef7;
	}

	public String getVdef8() {
		return vdef8;
	}

	public void setVdef8(String vdef8) {
		this.vdef8 = vdef8;
	}

	public String getVdef9() {
		return vdef9;
	}

	public void setVdef9(String vdef9) {
		this.vdef9 = vdef9;
	}

	public String getVdef10() {
		return vdef10;
	}

	public void setVdef10(String vdef10) {
		this.vdef10 = vdef10;
	}

	public String getGroupid() {
		return groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}

	public Integer getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Integer isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Date getTs() {
		return ts;
	}

	public void setTs(Date ts) {
		this.ts = ts;
	}

	public String getAccountbankname() {
		return accountbankname;
	}

	public void setAccountbankname(String accountbankname) {
		this.accountbankname = accountbankname;
	}

	public String getAlipayname() {
		return alipayname;
	}

	public void setAlipayname(String alipayname) {
		this.alipayname = alipayname;
	}

	public String getWechatname() {
		return wechatname;
	}

	public void setWechatname(String wechatname) {
		this.wechatname = wechatname;
	}

	public List<String> getGroupidList() {
		return groupidList;
	}

	public void setGroupidList(List<String> groupidList) {
		this.groupidList = groupidList;
	}

	public Integer getCreatebycorp() {
		return createbycorp;
	}

	public void setCreatebycorp(Integer createbycorp) {
		this.createbycorp = createbycorp;
	}

	public Date getEffectivestartdate() {
		return effectivestartdate;
	}

	public void setEffectivestartdate(Date effectivestartdate) {
		this.effectivestartdate = effectivestartdate;
	}

	public Date getEffectiveenddate() {
		return effectiveenddate;
	}

	public void setEffectiveenddate(Date effectiveenddate) {
		this.effectiveenddate = effectiveenddate;
	}

	public Integer getEffectiveStatus() {
		return effectiveStatus;
	}

	public void setEffectiveStatus(Integer effectiveStatus) {
		this.effectiveStatus = effectiveStatus;
	}

	public String getCustomername() {
		return customername;
	}

	public void setCustomername(String customername) {
		this.customername = customername;
	}

	public String getSuppliername() {
		return suppliername;
	}

	public void setSuppliername(String suppliername) {
		this.suppliername = suppliername;
	}
}

